package com.cjw.pojo.entity.resourceManage;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Table;

/**
 * @author : cjw
 * @date: : 2022/3/6 22:17
 * @description : 接口资源实体
 */
@Data
@Table(name = "controller_resource")
@ApiModel("接口资源实体")
public class ControllerResource {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @ApiModelProperty("接口名称")
    private String name;

    @ApiModelProperty("url")
    private String url;

    @ApiModelProperty(name = "状态", notes = "1-正常 0-封禁")
    private Integer state;

    @ApiModelProperty("所属接口组")
    private String team;

    @ApiModelProperty("方法名")
    private String method;
}
